﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Alos.Entity;
using Alos.IRepository;
using PetaPoco;

namespace Alos.Repository
{
    public class ReSubjectiveQuestionRepository : BaseRepository<ReSubjectiveQuestion>, IReSubjectiveQuestionRepository
    {
        /// <summary>
        /// 学生提交记录(主观题)
        /// </summary>
        /// <param name="ReObjectiveQuestions"></param>
        /// <returns></returns>
        public bool CreateZhuGuan(List<ReSubjectiveQuestion> reSubjectiveQuestions)
        {
            bool tianjia = true;
            foreach (ReSubjectiveQuestion item in reSubjectiveQuestions)
            {
                if (Convert.ToInt32(item.Insert()) == 0)
                {
                    tianjia = false;
                }
            }
            return tianjia;
        }
    }
}
